package com.cs.bd.fwad.api;

import android.app.Application;
import android.content.Context;
import android.os.Bundle;
import android.support.annotation.NonNull;

public class FwadApi {

    public static void enableLog(boolean enable) {

    }

    public static void setChannel(String channel) {

    }

    public static void init(@NonNull Application context) throws Exception {

    }

    public static void setOtherParams(final Context context, final FwadApi.Params params) {

    }

    public static void setParam(final Context context, String key, int value, String value1) {

    }

    public static void init(final Context context, final String buyChannel, final Integer userFrom, final String channel) {

    }

    public static void setsTestServer(boolean b) {
    }


    public static class Params {
        private long mInstallTime;
        private boolean mIsUpgradeUser;

        public Params() {
        }

        public FwadApi.Params setInstallTime(long mInstallTime) {
            this.mInstallTime = mInstallTime;
            return this;
        }

        public FwadApi.Params setIsUpgradeUser(boolean mIsUpgradeUser) {
            this.mIsUpgradeUser = mIsUpgradeUser;
            return this;
        }

        public Bundle toBundle() {
            Bundle bundle = new Bundle();
            bundle.putLong("PARAM_INSTALL_TIME", this.mInstallTime);
            bundle.putBoolean("PARAM_IS_UPGRADE_USER", this.mIsUpgradeUser);
            return bundle;
        }
    }

}
